﻿<Window x:Class="WpfViewer.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" Loaded="Window_Loaded" Initialized="Window_Initialized" WindowState="Maximized">
    <Grid Background="#FF414141">
        <ScrollViewer x:Name="scrollViewer" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Auto">
            <Viewbox Stretch="Uniform" Margin="4">
                <Canvas x:Name="drawCanvas" Background="White">
                </Canvas>
            </Viewbox>
        </ScrollViewer>
        <ComboBox Height="23" Name="comboBox1" Width="120" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="8,8,0,0" SelectedIndex="2" SelectionChanged="comboBox1_SelectionChanged">
            <ComboBoxItem Content="Fit to Width" x:Name="cbiFitToWidth" />
            <ComboBoxItem Content="Fit to Height" x:Name="cbiFitToHeight" />
            <ComboBoxItem Content="Original size"  x:Name="cbiOriginalSize"/>
        </ComboBox>
        <TextBox Name="txtPageNum" Height="23" Width="64" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="142,8,0,0" Text="1" KeyDown="txtPageNum_KeyDown" />
        <Button Content="Open" Height="23" Name="btnOpen" Width="75" VerticalAlignment="Top" HorizontalAlignment="Left" Margin="222,8,0,0" Click="btnOpen_Click" />
    </Grid>
</Window>
